package com.example.springboot.service.impl;

import com.example.springboot.mapper.InfosMapper;
import com.example.springboot.pojo.Infos;
import com.example.springboot.service.InfosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InfosServiceImpl implements InfosService {

    @Autowired
    InfosMapper infosMapper;

    public List<Infos> findAll() {
        return infosMapper.findAll();
    }

    @Override
    public int insertInfos(Infos infos) {
        return infosMapper.insertInfos(infos);
    }

    @Override
    public int countInfos() {
        return infosMapper.countInfos();
    }
}
